﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace RadarSim
{
	/// <summary>
	/// Test.xaml 的交互逻辑
	/// </summary>
	public partial class Test : Window
	{
		public Test()
		{
			this.InitializeComponent();
			
			// 在此点之下插入创建对象所需的代码。
            List<TestBean> testData = new List<TestBean>();
            testData.Add(new TestBean("asdf", "asdf", "gfdg", "wet"));
            testData.Add(new TestBean("阿萨德", "算法", "随风倒", "该罚的"));
            testData.Add(new TestBean("asdf", "asdf", "gfdg", "wet"));
            testData.Add(new TestBean("阿萨德", "算法", "随风倒", "该罚的"));
            testData.Add(new TestBean("asdf", "asdf", "gfdg", "wet"));
            testData.Add(new TestBean("阿萨德", "算法", "随风倒", "该罚的"));
            this.dataTable.SARItemsSource = testData;
		}

        private void menu_SARMenuClick(int menuItemIndex)
        {
            MessageBox.Show("您选择了" + menuItemIndex);
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            this.msgCont.SARAddText(this.textBox1.Text);
            this.textBox1.Text = "";
        }
	}
	

    public class TestBean
    {
        private string header1;

        public string Header1
        {
            get { return header1; }
            set { header1 = value; }
        }
        private string header2;

        public string Header2
        {
            get { return header2; }
            set { header2 = value; }
        }
        private string header3;

        public string Header3
        {
            get { return header3; }
            set { header3 = value; }
        }
        private string header4;

        public string Header4
        {
            get { return header4; }
            set { header4 = value; }
        }

        public TestBean(string s1, string s2, string s3, string s4)
        {
            this.header1 = s1;
            this.header2 = s2;
            this.header3 = s3;
            this.header4 = s4;
        }
    }
}